import React, { Component } from 'react';
import './mine_base.scss'
class Com extends Component {
  constructor(props) {
    super(props);
    this.state = {}
  }
  set () {
    alert("该功能暂未开放")
  }
  render () {
    let names = JSON.parse(localStorage.getItem('names'))  
    return (
      <div className="top">
        <div className="userImg">
        <img src="http://b-ssl.duitang.com/uploads/item/201603/26/20160326232537_Cz4mZ.jpeg" alt=""/>
        </div>
        <h1>{ names}的厨房</h1>
        <p>2018-12-30 加入</p>
        <div className="btns">
          <div className="button" onClick={this.set.bind(this)}>设置个人资料</div>
          <ul className="follow">
            <li><p>关注的人</p><span>0</span></li>
            <li><p>被关注</p><span>0</span></li>
          </ul>
        </div>
      </div>
    )
  }
}

export default Com;